public class Village {
    static int treeAmout;
    int peopleNumber;
    String name;
    Village(String s){
        name = s;
    }
    void treePlanting(int n){
        treeAmout = treeAmout + n;
        System.out.println(name + "植树" + n + "棵");
    }
    void fellTree(int n){
        if(treeAmout - n >= 0){
            treeAmout = treeAmout - n;
            System.out.println(name + "伐树" + n + "棵");
        }
        else{
            System.out.println("无树木可伐");
        }
    }
    static int lookTreeAmount(){
        return treeAmout;
    }
    void addPeopleNumber(int n){
        peopleNumber = peopleNumber + n;
        System.out.println(name + "增加了" + n + "人");
    }
}
